<script src="<?php echo $baseurl?>public/theme/analytics/datetimepicker/jquery.datetimepicker.js" type="text/javascript" ></script>
<link href="<?php echo $baseurl?>public/theme/analytics/datetimepicker/jquery.datetimepicker.css" type="text/css" rel="stylesheet" /> 
<div class="inside">
  <aside class="navigationPanel">
     <div class="tree pagesLinks">
        <ul>
           <ul>
              <li> <a class="active" href="<?php echo $baseurl.'campaign-user.html'?>" >Chiến dịch của bạn</a> </li>                      
              <li> <a href="<?php echo $baseurl.'add-campaign-user.html'?>">Tạo chiến dịch mới</a> </li>
              <li> <a href="<?php echo $baseurl.'history-trade.html'?>">Lịch sử giao dịch</a> </li>
           </ul>
        </ul>
     </div>
  </aside>
  <div class="contentPanel">
     <div class="pages" id="profile">
        <div class="profile-edit-form">
              <?php $att = array('id' => '', 'class' => '');echo form_open('', $att);?>
              <div class="contentBox switcher" style="height: 100%;">
                <h3>Thông tin chiến dịch </h3>
                 <?php if(validation_errors()):?>
                    <h4>
                        <p><?php echo validation_errors(); ?></p>
                    </h4>
                    <?php endif;?>
                 <div class="contentSwitcher hide" style="display: block;">
                    <div class="insideContentBox">
                      
                        <!--label>Loại quảng cáo</label-->
                        <?php //echo $data['data']->type_ads; ?>
                        
                        <label for="frm-fullname">Địa điểm*:</label> 
                        <div class="checkArea">
                            <?php $i = 1; foreach ( $dataListShop AS $el=>$le ){ ?>
                                <div class="checkLine">
                                    <span class="checkBox">
                                        <input type="checkbox" name="address_id[]" value="<?php echo $le->id;?>" id="checkBox_<?php echo $i;?>"
                                               <?php foreach ( $data['place'] AS  $el1 => $le1 ){
									if ( $le1->id_place == $le->id ){
										echo "checked";
									}
								}?>  >
                                        <label class="check" for="checkBox_<?php echo $i;?>"></label>
                                    </span>
                                    <span><?php echo $le->shopName .' - ' .$le->address ;?></span>
                                </div>
                            <?php $i++; } ?>
                        </div>
					  
                       <label for="frm-fullname">Tên chiến dịch*:</label> 
                       <input type="text" name="title" value="<?php echo $data['data']->title;?>" class="ipt" autocomplete="off" id="frm-fullname" placeholder="Tên chiến dịch...">
                       
                       <label for="frm-mobile">Thời gian bắt đầu*:</label> 
                       <input id="datetimepicker" type="text" name="time_start" value="<?php echo $data['data']->time_start;?>" class="ipt" placeholder="Thời gian bắt đầu..." />
                       
                       <label for="frm-email">Thời gian kết thúc*:</label> 
                       <input id="datetimepicker2" type="text" name="time_end"  value="<?php echo $data['data']->time_end;?>" class="ipt" placeholder="Thời gian kết thúc..." />
                       
                       <!--<label for="frm-address">Chọn cửa hàng:</label> 
                       <div class="inputHolder c">
							<select name="id_shop" class="form-select"><?php echo $getListShop;?></select>
                       </div> -->
                        
                       <label for="frm-fullname">Yêu cầu khác</label> 
                       <textarea name="note" rows="4" cols="50" class="ipt" autocomplete="off" id="frm-fullname" placeholder="Yêu cầu khác..."><?php echo $data['data']->note;?></textarea>
                        
                       <div class="lineButton">
                           <button type="submit" class="applyBtn btn btn-small btn-primary"><span>Cập nhật</span></button>
                           <button type="button" onclick="window.location='<?php echo $baseurl.'campaign-user.html'?>'" class="cancelBtn btn btn-default btn-small"><span>Hủy bỏ</span></button>
                       </div>
                       
                    </div>
                 </div>
                  
                 
              </div>
              
           </form>
        </div>
     </div>
  </div>
</div> 
<style>
body.flash-permanent .contentPanel {
    padding: 100px 0px 18px !important;
}
.cfr {
    line-height: 1px !important;padding: 15px 79px 0px 12px !important;height: 37px !important;
}
</style>
<script>

$('#datetimepicker').datetimepicker({
dayOfWeekStart : 1,
lang:'vi',
disabledDates:['1986/01/08','1986/01/09','1986/01/10'],
startDate:	'2015/01/01'
});
//$('#datetimepicker').datetimepicker({value:'2015/01/01 00:00',step:15});
$('#datetimepicker2').datetimepicker({
dayOfWeekStart : 1,
lang:'vi',
disabledDates:['1986/01/08','1986/01/09','1986/01/10'],
startDate:	'2015/01/01'
});
//$('#datetimepicker2').datetimepicker({value:'2015/01/01 00:00',step:15});

</script>